* {
    margin: 0;
    padding: 0;
    font-family: "Source Code Pro";
    box-sizing: border-box;
    outline: none;
    text-decoration: none;
}

body {
    height: 100vh;
    background: linear-gradient(#f99, #99f);
    display: flex;
    justify-content: center;
    align-items: center;
}
.search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border-radius: 100px;
}
.search input {
    font-size: 16px;
    height: 32px;
    line-height: 32px;
    border: none;
    background-color: none;
    color: #99f;
    transition: 0.5s;
    line-height: 40px;
    width: 0px;
}
.search input::placeholder {
    text-align: center;
    color: rgba(0, 0, 0, .3);
}
.search-btn {
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ff4757;
    padding: 8px;
    background-color: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.5s;
}

.search:hover > .search-btn{
    background-color: #f0f0f0;
}

.search:hover > input {
    width: 240px;
    margin-left: 20px;
    padding: 0;
    transition: all 0.5s;
}
